package org.lh.ibernate.core.invoker;

import org.lh.ibernate.annotation.*;

import java.util.List;


/*
 *
 * @author idea
 * @date 2018/7/12
 * @param Method method,Object[] args
 * @des dao的父类
 */
public interface IbernateBaseDao<T,PK> {

    @Insert
    T saveOne(T obj);

    @Update
    T updateOne(T obj);

    @Delete
    T deleteOne(T obj);

    @FindOne
    T findOne(PK pk);

    @FindAll
    List<T> findAll();

    @BatchInsert
    List<T> saveBatch(List<T> objList);

}
